import http from './public'

export default {
    PostDataList: (params) => { // 示例post请求
        return http.fetchPost('/api/TemperatureHigh/PostDataList', params)
    },
    GetTemperatureHighALL: (params) => {
        return http.fetchPost('/api/TemperatureHigh/PostDataList', params)
    },
    GetTemperatureHighById: (params) => {
        return http.fetchGet('/api/TemperatureHigh/GetTemperatureHighById', params)
    },
    GetSymptom: (params) => {
        return http.fetchGet('/api/TemperatureHigh/GetSymptom', params)
    },
    GetDealInfo: (params) => {
        return http.fetchGet('/api/TemperatureHigh/GetDealInfo', params)
    },
    PostSaveSingleData: (params) => {
        return http.fetchPost('/api/TemperatureHigh/PostSaveSingleData', params)
    },
    GetTwtzList: (params) => {
        return http.fetchPost('/api/Twtz/GetList', params)
    },
    SaveTwtz: (params, formData) => {
        return http.fetchPostForm('/api/Twtz/SaveTwtz', params, formData)
    },
    GetTwtzEntity: (params) => {
        return http.fetchPost('/api/Twtz/GetTwtzEntity', params)
    },
    getalluserlist: (params) => {
        return http.fetchGet('/api/Employee/Get', params)
    },
    GetRetroList: (params) => { // 请求人员列表
        return http.fetchGet('/api/Employee/Get', params)
    },
    GetYqzsDetailInfo: (params) => { // 请求人员详细信息
        return http.fetchGet('/api/Employee/Get', params)
    },
    GetYqzsNum: (params) => { // 请求人员详细信息
        return http.fetchGet('/api/Yqzs/Get', params)
    },
    SubmitYqzsDetailInfo: (params, formData) => { // 请求疫情追溯详细信息
        return http.fetchPUT(`/api/Employee/Put`, params, formData)
    },
    AddYqzsDetailInfo: (params, formData) => { // 人员新增
        return http.fetchPostFormData(`/api/Employee/Post`, params, formData)
    },
    GetReportList: (params) => { // 获取疫情上报列表
        return http.fetchPost('/api/ReportOnEpidemic/GetPagedList', params)
    },
    GetSingleDataById: (params) => { // 获取疫情上报详情
        return http.fetchPost('/api/ReportOnEpidemic/GetSingleDataById', params)
    },
    UpdateReport: (params) => { // 更新疫情上报
        return http.fetchPost('/api/ReportOnEpidemic/Update', params)
    },
    GetIsManager: (params) => { // 查询是否是管理员
        return http.fetchGet('/api/Register/GetIsManager', params)
    },
    GetTreeList: (params) => { // 单位数据(结构树)
        return http.fetchGet('/api/Unit/GetTreeList', params)
    },
    SaveUnit: (params) => { // 保存单位管理(新增、修改)
        return http.fetchPost('/api/Unit/SaveUnit', params)
    },
    GetEntity: (params) => { // 单位详情
        return http.fetchGet('/api/Unit/GetEntity', params)
    },
    GetDepartInfoByCode: (params) => { // 用单位code码给用户注册
        return http.fetchGet('/api/Register/GetDepartInfoByCode', params)
    },
    UserStatistics: (params) => { // 首页人员统计
        return http.fetchGet('/api/Main/Get', params)
    },
    GetDecktopTW: (params) => { // 首页测温统计
        return http.fetchPost('/api/Twtz/GetDecktopTW', params)
    },
    GetEntityBySeqCode: (params) => { // 校验单位编码是否存在
        return http.fetchGet('/api/Unit/GetEntityBySeqCode', params)
    },
    PostPerfectInfo: (params) => { // 将用户和微信昵称关联
        return http.fetchPost('/api/Register/PostPerfectInfo', params)
    },
    GetYqData: (params) => { // 疫情动态数据
        return http.fetchGet('/api/yqdata/get', params)
    },
    GetSingleDataByUserNo: (params) => { // 获取用户信息
        return http.fetchGet('/api/Register/GetSingleDataByUserNo', params)
    }
}
